package controller

import (
	"github.com/gin-gonic/gin"
	"shop-common/library/serializer"
	"shop-common/utils/contextArgs"
	"shop-service/business"
)

type OrderController struct {
}

func (c *OrderController) Confirm(ctx *gin.Context) {
	userId := StaticUserId

	addrId, err := contextArgs.GetUriIntQuery(ctx, "addrId")
	if err != nil {
		serializer.Fail(ctx, err.Error())
		return
	}

	// 订单的地址信息
	business.ServiceImpl().UserAddrService.FindByUserId(uint(addrId), userId)

	// 组装获取用户提交的购物车商品项
}
